package com.lhf.fvssystem.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhf.fvscommon.entity.SysRolePer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色权限关联表(SysRolePer)表数据库访问层
 *
 * @author lhf
 * @since 2020-10-26 10:57:35
 */
public interface SysRolePerDao extends BaseMapper<SysRolePer> {


    /**
     * 添加权限
     * @param perIds
     * @param roleId
     * @return
     */
    int addPer(@Param("perIds") List<Integer> perIds, @Param("roleId") Integer roleId);


}